//
// Created by konglinglong on 2020/9/6.
//

#include <stdio.h>
#include "../../../lib/doctest.h"
#include "../../../../src/o5gran/l2/include/l2Api.h"
#include "../../../common/commDef.h"

using namespace std;

TEST_SUITE ("L2_TS")
{
    TEST_CASE ("L2_TC")
    {
        int32_t rc;
        int argc;
        char* argv[4];

        argc = 3;

        SUBCASE("L2_SC_BASE")
        {
            argv[0] = (char*)"APP_TYPE_RAN";
            argv[1] = (char*)"--app-type=APP_TYPE_RAN";
            argv[2] = (char*)"--config=" O5G_RAN_CONFIG_FILE_PATH_4_TEST "gnb.band78.tm1.106PRB.usrpb210.toml";
            rc = RAN_Init(argc, argv);
            REQUIRE(O5G_RC_OK == rc);

            rc = RAN_Final();
            REQUIRE(O5G_RC_OK == rc);
        }
    }
}
